﻿using Mbs.Collections;
using NUnit.Framework;

namespace Mbs.Test
{
    [TestFixture]
    public class PropertyManagerTest
    {
        [Test]
        public void Test()
        {
            var props = PropertyManager.Instance.Properties;
            Assert.IsNotNull(props);

            Assert.IsTrue(props.Get<int>("A") == 1);


            props.Set("B", "how are you");

            PropertyManager.Instance.Save();
            var value = PropertyManager.Instance.Properties.Get<string>("B");
            Assert.IsTrue(string.Equals(value,"how are you"));
        }
    }
}
